ItemCategory

@Serializable
data class ItemCategory(val id: Int, val name: String, val items: List<Handle.Named<Item>>, val names: List<Name>, val pocket: Handle.Named<ItemPocket>) : NamedModel(source)

Item categories determine where items will be placed in the players bag. See: https://pokeapi.co/docs/v2#item-categories

Parameters

id

The identifier for this resource.

name

The name for this resource.

items

A list of items that are a part of this category.

names

The name of this resource listed in different languages.

pocket

The pocket items in this category are put into.

Constructors

Link copied to clipboard
constructor(id: Int, name: String, items: List<Handle.Named<Item>>, names: List<Name>, pocket: Handle.Named<ItemPocket>)

Properties

Link copied to clipboard
open override val id: Int
Link copied to clipboard
Link copied to clipboard
open override val name: String
Link copied to clipboard
Link copied to clipboard